<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        a {
            display: inline-block;
            width: 120px;
            height: 58px;
            font-size: 18px;
            line-height: 50px;
            text-align: center;
            text-decoration: none;
            color: #ffffff;
            background-color: aquamarine;
            background-repeat: no-repeat;
        }

        /* 添加背景图片 */
        .bg1 {
            background-image: url(images/bg1.png);
        }

        /* 做链接伪类选择器  */
        .bg1:hover {
            background-image: url(images/bg11.png);
        }

        .bg2 {
            background-image: url(images/bg2.png);
        }

        .bg2:hover {
            background-image: url(images/bg22.png);
        }

        .bg3 {
            background-image: url(images/bg3.jpg);
        }

        .bg3:hover {
            background-image: url(images/bg11.png);
        }

        .bg4 {
            background-image: url(images/bg4.png);
        }

        .bg4:hover {
            background-image: url(images/bg22.png);
        }

        .bg5 {
            background-image: url(images/bg5.png);
        }

        .bg5:hover {
            background-image: url(images/bg22.png);
        }
    </style>
</head>

<body>
    <div>
        <a href="#" class="bg1">五彩导航栏</a>
        <a href="#" class="bg2">五彩导航栏</a>
        <a href="#" class="bg3">五彩导航栏</a>
        <a href="#" class="bg4">五彩导航栏</a>
        <a href="#" class="bg5">五彩导航栏</a>
    </div>
</body>

</html>